base-2 number system based on values 0 and 1 only
bit: binary digit
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
---|---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
base-16 number system
A(10) | B(11) | C(12) | D(13) | E(14) | F(15) |
---|---|---|---|---|---|
1010 | 1011 | 1100 | 1101 | 1110 | 1111 |
quick way of translating hexadecimal to binary is by converting to BCD
e.g. A5 in binary -> 1010 0101
usage: color code, addresses
making the MSB (most significant bit) a sign bit
-128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
---|---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
conversion between negative denary and binary two's complement
32 | 48 | 65 | 97 |
---|---|---|---|
Space | 0 | A | a |
8 bits per letter
Bit-map image
Vector Graphics
Analogue to digital converter (ADC)
Digital to analogue converter (DAC)
Sampling
the height of analogue sound waves can be sampled regularly with the height being represented by a bit-code
sampling Rate: number of samples taken per second
sampling Resolution(Bit depth): no. of bits assigned to each sample
bit rate: number of bits required to store 1s of sound
bit rate = sampling rate * sampling resolution
file size = bit rate * length of sound
original version can be retrieved
Run-lenth encoding: consecutive values are stored as a single data value and count
e.g. 00002111 can be written as (0-4)2(1-3)